import java.util.ArrayList;
import java.util.Vector;


public class Velocity {
	private int xVel;
	private int yVel;

	public Velocity (){
		xVel=0; 
		yVel=0;
	}	

	public int getXvel() {

		return xVel;
	}
	public int getYvel() {

		return yVel;
	}
	public void newVelocity(GridCell cameFrom, int[] ps) {
		for(int i=0;i<ps.length;i++){	
			xVel=cameFrom.getVel().getXvel()+ps[0]-ps[1]; //Simplified ft=mv.
			yVel=cameFrom.getVel().getYvel()+ps[2]-ps[3];
		}
		

	}
	public String toString(){
		return "xVel="+this.xVel+"yVel="+this.yVel;

	}

	public void resetVel() {
		this.xVel=0;
		this.yVel=0;// TODO Auto-generated method stub
		
	}


}
